<html>
  <head>
    <meta name="GENERATOR" content="BLOCKNOTE.NET"/>
    <meta name="source"/>
    <basefont face="Verdana" size="2"/>
    <meta name="generator" content="h-smile:richtext"/>
  </head>
<body>
  <h1>Storage object</h1>
  <p>Represents persistent storage.</p>
  <div align="left">
    <table border="0" cellpadding="4" cellspacing="0" width="100%">
      <tr>
        <td colspan="2">
          <h2>Properties</h2></td></tr>
      <tr>
        <td bgcolor="#ffffff" valign="top" align="right"><strong><em>root</em></strong></td>
        <td bgcolor="#fffff0" valign="middle">- <em>object</em>, root object in the storage. Read/write property.</td></tr>
      <tr>
        <td bgcolor="#ffffff" valign="top" align="right"><strong><em>autocommit</em></strong></td>
        <td bgcolor="#fffff0" valign="middle">- <em>boolean</em>, indicates if storage commits all associated objects into storage automatically. Read-only property.</td></tr>
      <tr>
        <td colspan="2" valign="top">
          <h2>Methods</h2></td></tr>
      <tr>
        <td bgcolor="#ffffff" valign="top" align="right"><strong><em>open</em></strong></td>
        <td bgcolor="#fffff0" valign="middle">
          <p><strong>( </strong><em>file-name</em><strong> </strong>&nbsp;[, autocommit] ) returns: storage | null</p>
          <p>Static method. Opens the storage, which name is stored in the <em>file-name</em> string and returns an instance of Storage object.<br/><em>autocommit</em> indicates if storage commits all associated objects into storage automatically. Default value is <em>true</em>.</p></td></tr>
      <tr>
        <td bgcolor="#ffffff" valign="top" align="right"><strong><em>close</em></strong></td>
        <td bgcolor="#fffff0" valign="middle">
          <div><strong>()</strong></div>
          <p>Closes underlying Storage object. Commits all data if <em>autocommit</em> is set to <em>true</em>.</p></td></tr>
      <tr>
        <td bgcolor="#ffffff" valign="top" align="right"><strong><em>commit</em></strong></td>
        <td bgcolor="#fffff0" valign="middle">
          <p><strong>()</strong></p>
          <p>Commits all related objects into storage.</p></td></tr>
      <tr>
        <td bgcolor="#ffffff" valign="top" align="right"><strong><em>createIndex</em></strong></td>
        <td bgcolor="#fffff0" valign="middle">
          <div><strong>(</strong><em>type [, unique]</em><strong>)</strong> returns: <em>Index | null</em></div>
          <p>Creates an index of type 'type' and returns <em>Index</em> object. <em>Index</em> could have unique or duplicated keys depending on <em>unique</em> argument. Default value for <em>unique</em> is <em>true</em>. Supported types: #<em>integer, #float, #date, #string</em>.</p></td></tr></table></div>
</body>
</html>